package bean;

public class Comment {
    private int id;
    private int fatherId;
    private String content;
    private String time;
    private int articleId;
    private String commenter;
    private String headPortrait;
    public Comment(){}

    public Comment(int id,int fatherId, String content, String time, int articleId, String commenter, String headPortrait) {
        this.id = id;
        this.fatherId=fatherId;
        this.content = content;
        this.time = time;
        this.articleId = articleId;
        this.commenter = commenter;
        this.headPortrait = headPortrait;
    }

    public Comment(int fatherId, String content, String time, int articleId, String commenter, String headPortrait) {
        this.fatherId = fatherId;
        this.content = content;
        this.time = time;
        this.articleId = articleId;
        this.commenter = commenter;
        this.headPortrait = headPortrait;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public String getCommenter() {
        return commenter;
    }

    public void setCommenter(String commenter) {
        this.commenter = commenter;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public int getFatherId() {
        return fatherId;
    }

    public void setFatherId(int fatherId) {
        this.fatherId = fatherId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", fatherId=" + fatherId +
                ", content='" + content + '\'' +
                ", time=" + time +
                ", articleId=" + articleId +
                ", commenter='" + commenter + '\'' +
                ", headPortrait='" + headPortrait + '\'' +
                '}';
    }
}
